package t10086.Service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import t10086.Model.Entity.CollisionRecord;
import t10086.Repository.CollisionRecordRepository;

@Service
public class CollisionService {
    private final  CollisionRecordRepository collisionRecordRepository;
    @Autowired
    public CollisionService(CollisionRecordRepository collisionRecordRepository) {
        this.collisionRecordRepository = collisionRecordRepository;
    }
    public void save(CollisionRecord collisionRecord) {
        collisionRecordRepository.save(collisionRecord);
    }
}
